
// GallopView.h : interface of the CGallopView class
//

#ifndef LUA_QT_QBrush_H
#define LUA_QT_QBrush_H

	#include <luaQt/config.h>
	#include <QAction>
	#include <QIcon>
	#include <QPen>
	#include <QBrush>


	/*////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	//tolua_begin
namespace Qt {
enum GlobalColor {
        color0,
        color1,
        black,
        white,
        darkGray,
        gray,
        lightGray,
        red,
        green,
        blue,
        cyan,
        magenta,
        yellow,
        darkRed,
        darkGreen,
        darkBlue,
        darkCyan,
        darkMagenta,
        darkYellow,
        transparent
    };

	enum BrushStyle { // brush style
        NoBrush,
        SolidPattern,
        Dense1Pattern,
        Dense2Pattern,
        Dense3Pattern,
        Dense4Pattern,
        Dense5Pattern,
        Dense6Pattern,
        Dense7Pattern,
        HorPattern,
        VerPattern,
        CrossPattern,
        BDiagPattern,
        FDiagPattern,
        DiagCrossPattern,
        LinearGradientPattern,
        RadialGradientPattern,
        ConicalGradientPattern,
        TexturePattern = 24
    };
}

class  QBrush
{
public:
    QBrush();
    QBrush(Qt::BrushStyle bs);
    QBrush(const QColor &color, Qt::BrushStyle);
    QBrush(Qt::GlobalColor color, Qt::BrushStyle);

    QBrush(const QColor &color);
    QBrush(Qt::GlobalColor color);
    QBrush(const QPixmap &pixmap);
    QBrush(const QImage &image);

    QBrush(const QBrush &brush);

    QBrush(const QGradient &gradient);

    ~QBrush();


    operator QVariant() const;

    Qt::BrushStyle style() const;
    void setStyle(Qt::BrushStyle);


    QColor color();
    void setColor(const QColor &color);
    void setColor(Qt::GlobalColor color);

    const QGradient *gradient() const;

    bool isOpaque() const;



    inline bool isDetached() const;
};

	
	//tolua_end
	//*//////////////////////////////////////////////////////////////////////////////////////////////////////////////


#endif
